// 接收单个
import { a } from "../modules/test.js";
console.log(a);
setTimeout(()=>{
  console.log(a);
}, 100)

// 接收多个
import { b, c, d, obj, msg as m } from "../modules/test.js";
console.log(b, c, d, obj, m);

// 接收后改名
import { a as aa } from "../modules/test.js";
console.log(aa);

// 接收所有接口，得到一个被打包之后的模块对象
import * as res from "../modules/test.js"
console.log(res);

// 接收default暴露的接口时，不需要加花括号
import asd from "../modules/test.js";
console.log(asd);

// 需要解构赋值除外
import {a as aaa, b as bbb, c as ccc} from "../modules/test.js";
console.log(aaa, bbb, ccc);
